home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-07-06 | 1.1 KB | 47 lines | [TEXT/MPS ] |
- include 'GestaltEqu.a'
- include 'Traps.a'
-
- CASE OBJ
-
- gestaltTV EQU 'mtv2'
-
- gestaltTellShow EQU 98
- gestaltTellXfmr EQU 99
-
- ; We use the gestaltTV selector as an indicator of whether the Video Player App is present.
- ; if the gestaltTV selector has been implemented then we should allow the VideoPlayer Addition to be mixed in.
-
- QLfyEntry PROC EXPORT
- movem.l a0/d1,-(sp)
-
- move.l #gestaltMachineType,d0 ; assume Video is supported on all AVs
- _Gestalt
- move.w d0,d1 ;
- bne.s @fail ;
-
- cmp.w #gestaltTellShow, a0
- beq.s @checkTV
-
- cmp.w #gestaltTellXfmr, a0
- beq.s @checkTV
-
- bra.s @fail
-
- @checkTV
- move.l #gestaltTV,d0 ; check to see if the gestaltTV selector is implemented
- _Gestalt
- move.w d0,d1 ; if no error is returned then the selector has been implemented correctly,
- beq.s @pass ; therefor the VidePlayerAddition should be mixed in.
-
- @fail
- move.w #0,d0 ; return false
- bra.s @exit
- @pass
- move.w #1,d0 ; return true
- @exit
- movem.l (sp)+, a0/d1
- rts
-
- ENDPROC
-
- END